package com.zcoj.api.exception;

import lombok.Data;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/5/12 20:38
 */
@Data
public class ContestOnGoingException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    protected String errorCode;
    /**
     * 错误信息
     */
    protected String errorMsg;

    public ContestOnGoingException(){
       this.errorCode="1001";
       this.errorMsg="比赛中禁止访问！";
    };

    public ContestOnGoingException( String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
